package initdb

import (
	baseStore "gitee.com/zaiqiang231/go-base-app/base_app/store"
	baseInitdb "gitee.com/zaiqiang231/go-base-app/base_app/store/initdb"
	"gitee.com/zaiqiang231/zcamp-service-camp/app/model"
)

func RegisterInit() {
	baseStore.RegisterInit(baseInitdb.DbTable[model.BaseCampInfo]{})
	baseStore.RegisterInit(baseInitdb.DbTable[model.GreenStatus]{})
	baseStore.RegisterInit(initDistrict{})
	baseStore.RegisterInit(initCondition{})
	baseStore.RegisterInit(baseInitdb.DbTable[model.CampMapCondition]{})
	baseStore.RegisterInit(baseInitdb.DbTable[model.PostInfo]{})
	baseStore.RegisterInit(baseInitdb.DbTable[model.PostComment]{})
	baseStore.RegisterInit(baseInitdb.DbTable[model.PostCommentLike]{})
	baseStore.RegisterInit(baseInitdb.DbTable[model.Product]{})
	baseStore.RegisterInit(baseInitdb.DbTable[model.PostStatistics]{})
	baseStore.RegisterInit(baseInitdb.DbTable[model.PostLike]{})
	baseStore.RegisterInit(baseInitdb.DbTable[model.Topic]{})
	baseStore.RegisterInit(baseInitdb.DbTable[model.Subject]{})
	baseStore.RegisterInit(baseInitdb.DbTable[model.SubjectPost]{})
	baseStore.RegisterInit(baseInitdb.DbTable[model.Banner]{})
	baseStore.RegisterInit(baseInitdb.DbTable[model.Activity]{})

	baseStore.GetDataStore().CreateTables()
}
